package com.yan.Service;

import com.yan.Pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookService {


    //增加一本书
    int addBooks(Books books);
    //删除一本书
    int delectBookById(@Param("bookId") int id);
    //修改一本书
    int  updateBook(Books books);
    //查询id根据
    Books queryBookById(@Param("bookId")int id);
    //查询全部
    List<Books> queryAllBook();

    Books queryBookName(@Param("bookName")String bookName);
}
